package dt.inlee.common.dao.api;

import dt.inlee.common.exception.FrameworkException;
import dt.inlee.common.pagination.SearchBean;

/**
 * 通用action方法接口
 * 
 * @author 陈燕波
 * @version 2014-05-06
 */
public interface ICommonAction {

	/**
	 * 新增or修改
	 * 
	 * @return
	 * @throws FrameworkException
	 * @throws Exception
	 */
	public String doAddOrUpdate() throws FrameworkException, Exception;

	/**
	 * 查询列表
	 * 
	 * @return
	 * @throws FrameworkException
	 * @throws Exception
	 */
	public String findList() throws FrameworkException, Exception;

	/**
	 * 封装查询条件
	 * 
	 * @return
	 * @throws FrameworkException
	 * @throws Exception
	 */
	public SearchBean createSearchBean() throws FrameworkException, Exception;

	/**
	 * 删除
	 * 
	 * @return
	 * @throws FrameworkException
	 * @throws Exception
	 */
	public String doDelete() throws FrameworkException, Exception;
}
